package cn.lanqiao.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provider")
public interface ProviderFeign {

    // 地址服务提供者url地址，参数是服务提供者要求参数
    @GetMapping("/hi")
    String hi(@RequestParam(value = "name", defaultValue = "david", required = false) String name);

}
